package com.suning.sawp.service.impl.bi.support;

import com.suning.istore.common.bi.ftp.MultiActionLineProcessor;
import com.suning.istore.common.bi.ftp.MultiTargetBIProcesser;

public abstract class MultiReportableTargetBIFileContext extends ReportableBIFileContext {

    public <T> MultiReportableTargetBIFileContext(final MultiTargetBIProcesser<T> biProcesser, String lineDelimiter) {
        this.setLineDelimiter(lineDelimiter);
        this.setLineProcessor(new MultiActionLineProcessor<T>(biProcesser.getClazz(), biProcesser.getLineMapper(),
                biProcesser.getActions(), DEFAULT_BATCH_SIZE, this));
    }
}